<template>
	<el-button @click="read" size="default" class="mt15" type="primary">
		<SvgIcon name="iconfont icon-step" />
		读取
	</el-button>
</template>
<script lang="ts">
import { toRefs, reactive, defineComponent, onMounted } from 'vue'
export default defineComponent({
	name: 'readfile',
	setup() {
		const state = reactive({
			tableData: [],
			date: null,
		})
		onMounted(() => {
			
		})
		const read = () => {
			const file = import.meta.globEager('../../../../temp_info.json')
			console.log(file['../../../../temp_info.json'])
		}
		return {
			read,
			...toRefs(state),
		};
	}
});
</script>